﻿using System.Collections.Generic;
using System.ServiceModel;
using System.ServiceModel.Web;
using CoreLibrary.Service;
using WebService.Service.Transfer;

namespace WebService.Service {

    [ServiceContract]
    public interface IReportServiceX {

        [OperationContract]
        [FaultContract(typeof(ServiceError))]
        [WebInvoke(BodyStyle = WebMessageBodyStyle.WrappedRequest,
            RequestFormat    = WebMessageFormat.Json,
            ResponseFormat   = WebMessageFormat.Json,
            UriTemplate = "/GetStatistics")]
        List<Statistic> GetStatistics(string passport, StatisticRequest request);
        
    }
}
